package com.shop.dao;

import com.shop.pojo.GoodsAttrVals;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface GoodsAttrValsMapper {
    int deleteByPrimaryKey(String attrValsId);

    int insert(GoodsAttrVals record);

    GoodsAttrVals selectByPrimaryKey(String attrValsId);

    List<GoodsAttrVals> selectAll();

    int updateByPrimaryKey(GoodsAttrVals record);

    void deleteAttrByGoodsId(String goodsId);

    List<GoodsAttrVals> selectByGoodsId(@Param("goodsId") String goodsId);

    List<GoodsAttrVals> queryAttrValsByCondition(Map<String,Object> params);

    int updateGoodsAttrValsByCondition(Map<String,Object> params);

}